/**
 * @author @叶小夏
 * @since 2019/8/5 0005 17:56
 * - 才需学也,学需静也/非淡泊无以明志，非宁静无以致远
 * <p>
 * protobuf有关?
 */
class Solution {


    public static void main(String[] args) {
        String s = "LEETCODEISHIRING";
        int numRows = 3;

        new Solution().convert(s, numRows);
    }

    public String convert(String s, int numRows) {

        final char[] chars = s.toCharArray();

        // 字符总数
        int totalCharCounts = chars.length;
        // Mark --- 组成一个z字需要的字符个数
        int firstZCharCounts = numRows * 2 + numRows - 2;

        int otherZCharCounts = firstZCharCounts - numRows;

        int totalZCounts = 1 + (totalCharCounts - firstZCharCounts) / otherZCharCounts;
        int leftCharCounts = (totalCharCounts - firstZCharCounts) % otherZCharCounts;

        int[] retIndex = new int[totalCharCounts];

        for (int i = 0; i < totalZCounts; i++) {
            
        }
        return null;
    }
}